<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var arr = ["a", "b", "c"];
        var result1 = arr.join();
        var result2 = arr.join("-");
        console.log(typeof arr);
        console.log(typeof result1);
        console.log("arr=" + JSON.stringify(arr));
        console.log("result1=" + JSON.stringify(result1));
        console.log("result2=" + JSON.stringify(result2));
    </script>
</body>

</html>